/*

This file is part of Rooms3D.

Copyright (C) 2008 Pixecur Technologies Incorporated (Esotera).
Visit Esotera at http://www.esoteras3.com
 
Rooms3D is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
 
Rooms3D is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with Rooms3D; see the file COPYING.  If not, write to 
Pixecur Technologies, 213-31 Peet Street, St. John's, NL, A1B 3W8. 
 
Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
 
*/

package com.datasentinel.j3d.controls;

import javax.vecmath.Vector3d;

public class Dimension3f extends Dimension2f 
{
	protected float depth;
	
	public Dimension3f()
	{
	}
	
	public Dimension3f(float width, float height, float depth)
	{
		super(width, height);
		this.depth = depth;
	}
	
	public Dimension3f(Dimension2f dimension2f)
	{
		this(dimension2f.width, dimension2f.height, 0.0f);
	}
	
	public Dimension3f(Dimension2f dimension2f, float depth)
	{
		this(dimension2f.width, dimension2f.height, depth);
	}
	
	public float getDepth()
	{
		return depth;
	}


	public void setDepth(float depth)
	{
		this.depth = depth;
	}
	
	public Vector3d getVector3d()
	{
		return new Vector3d(width, height, depth);
	}
	
	public Dimension2f getDimension2f()
	{
		return new Dimension2f(width, height);
	}
}
